<f:view
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:itdep="http://itdep.bsuir.by/jsf"
		>

	<ui:decorate template="/facelets/template/mainTemplate.xhtml">
		<f:loadBundle basename="bundle.department" var="departmentBundle"/>
		<f:loadBundle basename="bundle.common" var="commonBundle"/>
		<ui:param name="title" value="Plan details"/>
		<ui:define name="center">
			<ui:decorate template="/facelets/template/centerTemplate.xhtml">

				<ui:define name="content">
					<f:loadBundle basename="bundle.plan" var="plansBundle"/>
					<ui:decorate template="/facelets/template/planPanelTemplate.xhtml">
					</ui:decorate>

					<ui:decorate template="/facelets/template/planEditTemplate.xhtml">
						<ui:param name="idPrefix" value="contentPlanEdit"/>
						<ui:param name="actionBean" value="#{semesterPlanBean}"/>
						<ui:define name="editPanelContext">
							<h:panelGrid columns="3">


								<h:outputText value="#{plansBundle.allHours}"/>
								<h:inputText value="#{semesterPlanBean.record.allHours}" id="allHours"
											 styleClass="sizeCopmonent"/>
								<itdep:errorMessage for="allHours"/>
								<h:outputText value="#{plansBundle.coursePart}"/>
								<h:inputText value="#{semesterPlanBean.record.coursePartNumber}" id="coursePart"
											 styleClass="sizeCopmonent"/>
								<itdep:errorMessage for="coursePart"/>

								<h:outputText value="#{plansBundle.semester}"
											  rendered="#{semesterPlanBean.record.new}"/>

								<h:selectOneListbox value="#{semesterPlanBean.record.term}" id="term"
													style="width:50px" rendered="#{semesterPlanBean.record.new}"
													size="1">
									<f:selectItem itemValue="1"/>
									<f:selectItem itemValue="2"/>
									<f:selectItem itemValue="3"/>
									<f:selectItem itemValue="4"/>
									<f:selectItem itemValue="5"/>
									<f:selectItem itemValue="6"/>
									<f:selectItem itemValue="7"/>
									<f:selectItem itemValue="8"/>
									<f:selectItem itemValue="9"/>
									<f:selectItem itemValue="10"/>
									<f:selectItem itemValue="11"/>
									<f:selectItem itemValue="12"/>


								</h:selectOneListbox>
								<itdep:errorMessage for="term"/>


							</h:panelGrid>
						</ui:define>
					</ui:decorate>


				</ui:define>


			</ui:decorate>

		</ui:define>
	</ui:decorate>

</f:view>